home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1992 June: ROMin Holiday / ADC Developer CD (1992-06) (''ROMin Holiday'')_iso / Developer Connection - 06-1992.iso / Development Platforms / Apple II / Apple II Sample Code / APW.SC / SC16Aware / Globals.c < prev    next >
Encoding:
C/C++ Source or Header  |  1990-06-24  |  915 b   |  31 lines  |  [TEXT/pdos]

  1. /*
  2.     Globals.c -- Version 3.0 
  3.     
  4.     Developer Technical Support Apple II Sample Code
  5.  
  6.     Copyright (c) 1990 by Apple Computer, Inc.
  7.     All Rights Reserved.
  8.  
  9.     Defines (i.e. allocates storage for) global variables used
  10.     in the network aware sample program.
  11. */
  12.  
  13. #include <Window.h>                     /* {CIIGSIncludes}Window.h */
  14.  
  15. int         quitFlag;                   /* non-zero if Quit has been selected */
  16. WmTaskRec   event;                      /* event record to get events from TaskMaster */
  17. GrafPortPtr lastWindow;                 /* keeps track of previous front window */
  18.  
  19.  
  20. /*
  21.     InitGlobals()
  22.  
  23.     Sets up initial values for the global variables above.
  24. */
  25. void InitGlobals()
  26. {
  27.     quitFlag = 0;                       /* Quit not selected yet */
  28.     event.wmTaskMask = 0x001FFFFFL;     /* Get all types of events */
  29.     lastWindow = (GrafPortPtr)-1;       /* No previous front window */
  30. }
  31.